package com.example.controller.xitongshouye;

import com.example.pojo.DengluRizhi;
import com.example.service.xitongshouye.DengService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ClassName: ***
 * @Description: ***
 * @author: ***
 * @date: 2022/11/28 18:42
 */
@Controller
@RequestMapping("/rizhi")
public class DengController {
    @Autowired
    private DengService dengService;

    /**
    * @Author: zdp
    * @Description: 查询登录人登陆日志
    * @DateTime: 18:46 2022/11/28
    * @Params:
    * @Return
    */
    @ResponseBody
    @CrossOrigin
    @RequestMapping("/denglurizhi")
    public List<DengluRizhi> all(String account){
        List<DengluRizhi> all = dengService.all(account);
        return all;
    }
}
